<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript"
	src='${ctx}/js/jquery/js/outlook2.js'>
</script>
<script type="text/javascript">
var win;
$(function() {
	getMenus("${ctx}");
	win = $("#modifyWindow").window({
		title : "修改密码",
		modal : true
	});
	$("#changePwd").click(function(){
		win.window("open");
		$("#window_body").load("${ctx}/userInfoController.do?method=password");
	});
	$("#logout").click(function(){
		$(document.body).append("<form id='logform' target='_self' method='post'></form>");
		var fm = $("#logform");
		fm.attr("action","${ctx}/loginingController.do?method=logout");
		fm.submit();	
	});
	var time=new Date().getFullYear()+"年"+(new Date().getMonth()+1)+"月"+new Date().getDate()+"日";
	setInterval("document.getElementById('time').innerHTML='【系统时间】："+time+"'+new Date().getHours()+'时'+new Date().getMinutes()+'分'+new Date().getSeconds()+'秒  星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
});
function save_click() {
	var form=$("form[name='pwdform']");
	if(checkpwd())
	submit(form,function(res,status){
		if(isSuccess(res,status)){
			win.window("close");
			alert("密码修改成功！");
		}else{
			alert("旧密码输入有误！");
		}
	});
}
function back_click() {
	win.window("close");
}
</script>
</head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no" onunload="">
	<noscript>
		<div
			style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px; width: 100%; background: white; text-align: center;">
			<img src="images/noscript.gif" alt='抱歉，请开启脚本支持！' />
		</div>
	</noscript>
	<div region="north" split="false" border="false"
		style="overflow: hidden; height: 75px; font-family: Verdana, 微软雅黑, 黑体">
		<div
			style="width: 100%; height: 45px; background: url(themes/lightblue/images/banner_02.png) repeat 0 0 #FFF; margin: 0;">
			<div
				style="width: 465px; height: 45px; background: url(themes/lightblue/images/banner_01.png) no-repeat 0 0 #FFF; margin: 0; float: left;"></div>
			<div style="width: auto; height: 45px; margin: 0; float: right;">
				<div
					style="width: 63px; height: 45px; background: url(themes/lightblue/images/banner_03.png) no-repeat 0 0 #FFF; margin: 0; float: left;"></div>
				<div
					style="width: auto; height: 21px; line-height: 21px; font-size: 11px; background: url(themes/lightblue/images/banner_04.png) repeat 0 0 #FFF; padding: 12px 0; margin: 0; float: left;">
					<a id="changePwd" href="javascript:void(0)" style="text-decoration: none;">修改密码</a> | 
					<a id="logout" href="javascript:void(0)" style="text-decoration: none;">退出</a>
				</div>
				<div
					style="width: 20px; height: 45px; background: url(themes/lightblue/images/banner_05.png) no-repeat 0 0 #FFF; margin: 0; float: left;"></div>
			</div>
		</div>
		<div
			style="width: 100%; height: 30px; background: url(themes/lightblue/images/banner_06.png) repeat 0 0 #FFF; margin: 0;">
	<div style="width: auto; height: 22px; line-height: 22px; font-size: 11px; margin: 8px 8px 0 0; display: inline; float: left;">
		【当前登录用户】：${userinfo.userNote}</div>
	<div style="width: auto; height: 22px; line-height: 22px; font-size: 11px; margin: 8px 8px 0 0; display: inline; float: right;" id="time"></div>
	</div>
	</div>
	<div region="south" split="true"
		style="height: 30px; background: #D2E0F2;">
		<div class="footer">
			<div align="center" style="background-color: #D7D7D7">
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td height=20 width='40%'>
							<table border="0" cellpadding="0" cellspacing="2" width="100%">
								<tr>
									<td
										style="BORDER-left: #A4A4A4 1px solid; BORDER-top: #A4A4A4 1px solid; BORDER-right: #FFFFFF 1px solid; BORDER-BOTTOM: #FFFFFF 0px solid;"
										nowrap align=center>【湖南工学院--科技文化节网络展示平台】</td>
								</tr>
							</table>
						</td>
					</tr>

				</table>
			</div>
		</div>
	</div>
	<div region="west" hide="true" split="true" title="导航菜单"
		style="width: 168px;" id="west">
		<div id="nav" class="easyui-accordion" fit="true" border="false">
		</div>

	</div>
	<div id="mainPanle" region="center"
		style="background: #EEEEEE; overflow-y: hidden">
		<div id="tabs" class="easyui-tabs" fit="true" border="false">
			<div title="欢迎使用"
				style="padding: 20px; overflow: hidden; color: red;">
				<h1 style="font-size: 24px;">湖南工学院科技文化节网络展示平台</h1>
			</div>
		</div>
	</div>
	<div id="mm" class="easyui-menu" style="width: 150px;">
		<div id="mm-tabupdate">刷新</div>
		<div class="menu-sep"></div>
		<div id="mm-tabclose">关闭</div>
		<div id="mm-tabcloseall">全部关闭</div>
		<div id="mm-tabcloseother">除此之外全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-tabcloseright">当前页右侧全部关闭</div>
		<div id="mm-tabcloseleft">当前页左侧全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-exit">退出</div>
	</div>
	<div id="modifyWindow" style="width: 350px;height: 230px;" closed="true">
		<div id="window_body"></div>
	</div>
</body>
</html>